home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / utils / sound / convrtr / amiga / amisox_w / makefile.ami < prev    next >
Encoding:
Makefile  |  1992-05-12  |  1.9 KB  |  74 lines

  1.  
  2. # Sound Tools Makefile for AMIGA
  3. #     builds libst.a and sox
  4.  
  5. FSRC= ami.c raw.c voc.c au.c sf.c aiff.c hcom.c 8svx.c sndrtool.c wav.c
  6. ESRC= copy.c avg.c pred.c stat.c vibro.c echo.c rate.c band.c lowp.c 
  7. PSRC= sox.c
  8.  
  9. SOURCES   = $(PSRC) $(FSRC) $(ESRC) handlers.c libst.c misc.c getopt.c
  10.  
  11. HEADERS   = st.h libst.h sfheader.h patchlevel.h 
  12.  
  13. TESTS     = 
  14.  
  15. MISC      = README TODO sox.man st.man Makefile README.amiga sox.man.ascii st.man.ascii Makefile.amiga
  16.  
  17. SKEL      = skel.c skeleff.c
  18.  
  19. # no support for skel yet (what's it for,anyway?)
  20. FILES     = $(MISC) $(HEADERS) $(SOURCES) $(TESTS) $(SKEL)
  21.  
  22. FOBJ= ami.o raw.o voc.o au.o sf.o aiff.o hcom.o 8svx.o sndrtool.o wav.o
  23. EOBJ= copy.o avg.o pred.o stat.o vibro.o echo.o rate.o band.o lowp.o 
  24.  
  25. SOUNDLIB  = libst.lib
  26. LIBOBJS   = $(FOBJ) $(EOBJ) handlers.o libst.o misc.o getopt.o
  27.  
  28. ## Amiga vars for SAS 5.10+.
  29. ## Lots of funky stuff here.  Unnecessary, but keeps it neat.
  30. ## Also matches unix makefile more closely, toward the day when
  31. ## we can use the same one.
  32.  
  33. ## your compiler should -DAMIGA itself, but just in case...
  34. CC    = lc -DAMIGA
  35. O    = -g
  36. AR    = oml
  37. AR_ARGS    = a
  38. RM    = delete
  39. WILDCARD= *
  40. LHA    = lha
  41. LHAFLAGS= -axY
  42. ARCHIVE    = amisox.lha
  43.  
  44. ## these are to compile with no 881/2 support
  45. MATHLIB    = lib:lcm.lib
  46. CFLAGS    = $O
  47.  
  48. ## these are to compile for a 68881/2 on math funcs
  49. #MATHLIB    = lib:lcm.lib lib:lcm881.lib
  50. #CFLAGS    = $O -f8 -DMC68881
  51.  
  52. ## start your engines
  53. ##
  54. all: sox
  55.  
  56. sox: sox.o $(SOUNDLIB)
  57.         blink lib:c.o sox.o to sox lib $(SOUNDLIB) $(MATHLIB) lib:lc.lib lib:amiga.lib
  58.  
  59. $(SOUNDLIB): $(LIBOBJS)
  60. #    $(RM) $(SOUNDLIB)       # Amiga make will choke if libst.lib does not
  61.                                 # exist, so delete it yourself.
  62.     $(AR) $(SOUNDLIB) $(AR_ARGS) $(LIBOBJS)
  63. #    $(RANLIB) $(SOUNDLIB)   # No ranlib on amiga, none needed.
  64.  
  65. sox.o:        sox.c st.h
  66.  
  67. $(LIBOBJS):    st.h
  68.  
  69. clean:
  70.     $(RM) $(WILDCARD).o
  71.  
  72. archive:
  73.     $(LHA) $(LHAFLAGS) $(ARCHIVE) $(FILES)
  74.